package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @PackageName: com.example.demo.config
 * @ClassName: WebSocketConfig
 * @Description:
 * @Author: czl
 * @Date: 2025/7/27 14:26
 */
@Configuration
public class WebSocketConfig {
    /**
     * 注册 ServerEndpointExporter，用于扫描 @ServerEndpoint 注解
     */
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
